﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FightEx
{
    public abstract class Character
    {
        // 声明一个接口,可以有用武器的行为
        protected WeaponBehavior weapon;

        public Character()
        { }

        // 可以有方法实现.
        public void fight()
        {
            weapon.useWeapon();
        }

        public void SetWeapon(WeaponBehavior wb)
        {
            this.weapon = wb;
        }


    }
}
